package com.rightsidetech.mall.mapper;


import com.rightsidetech.mall.entity.MallBaseInfoTag;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MallBaseInfoTagMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MallBaseInfoTag record);

    int insertSelective(MallBaseInfoTag record);

    MallBaseInfoTag selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MallBaseInfoTag record);

    int updateByPrimaryKey(MallBaseInfoTag record);

    int insertList(Map<String,Object> map);

    List<Byte> selectTagByBaseInfoId(Long id);

    Long selectCountByBaseInfoId(Long id);

    Long deleteByBaseInfoId(Long id);

    MallBaseInfoTag check(@Param("id") Long id,@Param("tag") byte tag);

    int updateCommodityTag(@Param("id") Long id,@Param("tag") byte tag);
}